gempy.modify_orientations¶
- gempy.modify_orientations(geo_model: GeoModel, slice: int | slice | None = None, **orientation_field: float | ndarray) StructuralFrame [source]¶
Modifies specified fields of all orientations in the structural frame. The keys of the orientation_field dictionary should match the field names in the orientations (e.g., “X”, “Y”, “Z”, “G_x”, “G_y”, “G_z”, “nugget”).
- Parameters:
geo_model (GeoModel) – The GeoModel instance to modify.
slice (Optional[Union[int, slice]]) – The slice of orientations to modify. If None, all orientations will be modified.
- Keyword Arguments:
X (Union[float, np.ndarray]) – X coordinates of the orientations.
Y (Union[float, np.ndarray]) – Y coordinates of the orientations.
Z (Union[float, np.ndarray]) – Z coordinates of the orientations.
azimuth (Union[float, np.ndarray]) – Azimuth angles of the orientations.
dip (Union[float, np.ndarray]) – Dip angles of the orientations.
polarity (Union[float, np.ndarray]) – Polarity values of the orientations.
G_x (Union[float, np.ndarray]) – X component of the gradient vector.
G_y (Union[float, np.ndarray]) – Y component of the gradient vector.
G_z (Union[float, np.ndarray]) – Z component of the gradient vector.
nugget (Union[float, np.ndarray]) – Nugget value of the orientations.
- Returns:
The modified structural frame.
- Return type: